-- GENERATED SPELL FOR [Burrowing Thundersnout] --


function spell0_8928(pUnit, Event) --@Disjunction,Self--
pUnit:FullCastSpellOnTarget(14533,pUnit)
pUnit:RegisterEvent('Sorts_8928', 678, 1)
end

function spell1_8928(pUnit, Event) --@Lizard Bolt,n/a--
pUnit:FullCastSpellOnTarget(15611,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8928', 2000, 1)
end

function spell2_8928(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_8928', 10287, 1)
end

function Sorts_8928(pUnit, Event)
local choix_sorts_8928 = math.random(0, 2)
if choix_sorts_8928 == 0 then
pUnit:RegisterEvent('spell0_8928', 1, 1)
end
if choix_sorts_8928 == 1 then
pUnit:RegisterEvent('spell1_8928', 1, 1)
end
if choix_sorts_8928 == 2 then
pUnit:RegisterEvent('spell2_8928', 1, 1)
end
end

function mob8928_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8928', math.random(1500, 3000), 1)
end

function mob8928_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8928_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8928_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8928, 1, 'mob8928_Action')
RegisterUnitEvent(8928, 2, 'mob8928_Leave')
RegisterUnitEvent(8928, 3, 'mob8928_Kill')
RegisterUnitEvent(8928, 4, 'mob8928_Die')
